package com.heima.apis;

import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("leadnews-search")
public interface ISearchClient {
    @PostMapping("/api/v1/article/search/load")
    public List<ApArticle> load(@RequestBody ArticleHomeDto dto);
}
